package com.totoro.tyrank.executor.command.impl;

import com.totoro.tyrank.executor.command.MainCommandExecutor;
import org.bukkit.command.CommandSender;

public class HelpCommandExecutor implements MainCommandExecutor {
    @Override
    public void execute(CommandSender sender, String[] args) {
        sender.sendMessage("§7/tyrank open <排行榜Id> <reward|attribute>(可忽略) §f- 打开某个排行榜/奖励属性界面");
        sender.sendMessage("§7/tyrank all §f- 打开全部排行榜");
        sender.sendMessage("§7/tyrank current §f- 打开当前进行的排行榜");
        sender.sendMessage("§7/tyrank history §f- 打开历史排行榜");
        sender.sendMessage("§7/tyrank help §f- 命令帮助");
        if(sender.isOp()) {
            sender.sendMessage("§7/tyrank reload §f- 更新所有配置文件");
            sender.sendMessage("§7/tyrank reload <language|config|排行榜Id> §f- 更新单个配置文件");
        }
    }
}
